package com.hedl.studyandjava8.java_new.lambda.entity;

import com.hedl.studyandjava8.java_new.lambda.service.Converter;
import com.hedl.studyandjava8.java_new.lambda.service.GreetingService;

/**
 * @author Big Watermelon
 * @description
 * @date 2024/02/13/18:51
 */
public class Java8Tester_2 {
    //这里必须是final的
    final static String salutation = "Hello!";
    public static void main(String[] args) {

        final int num = 1;
        Converter<Integer,String> s = (param)->System.out.println(java.lang.String.valueOf(param+num));
        s.convert(2);

        GreetingService greetService = message -> {
            System.out.println(salutation+message);
        };
        greetService.sayMessage("Runoob");
    }
}
